﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using TracNghiemTinHocDaiCuong.DAO;
using TracNghiemTinHocDaiCuong.ThucThe;

namespace TracNghiemTinHocDaiCuong.BIZ
{
    public class NguoiDungBIZ
    {


        public static IList<NguoiDung> TimKiem(string tenTaiKhoan, string hoVaTen, string range)
        {
            return NguoiDungDAO.TimKiem(tenTaiKhoan, hoVaTen, range);
        }

        public static NguoiDung TimKiemTheoId(int idNguoiDung)
        {
            return NguoiDungDAO.TimKiemTheoId(idNguoiDung);
        }

        public static IList<NguoiDung> LayDanhSach()
        {
            return NguoiDungDAO.LayDanhSach();
        }

        public static bool Them(NguoiDung nguoiDung)
        {
            return NguoiDungDAO.Them(nguoiDung);
        }

        public static bool Sua(NguoiDung nguoiDung)
        {
            return NguoiDungDAO.Sua(nguoiDung);
        }

        public static bool Xoa(int idNguoiDung)
        {
            return NguoiDungDAO.Xoa(idNguoiDung);
        }
    }
}